package com.tn.user.controller;

import com.tn.user.feign.ServerBasicFeign;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tn
 * @version 1
 * @ClassName RibbonTestConsumerController
 * @description 负载均衡
 * @date 2020/8/7 11:19
 */
@RestController
@RequestMapping("ribbon")
@Api(tags = "user - 负载均衡")
public class RibbonTestConsumerController {

    @Autowired
    private ServerBasicFeign serverBasicFeign;

    @GetMapping(value = "test01")
    @ApiOperation(value = "user - 负载均衡 - test01")
    public String test01() {
        return serverBasicFeign.test02();
    }
}
